DSA
Get DSA code execution result [batch]
Get result of multiple DSA code execution attempts at once
Authentication with the “FERMION-API-KEY” header is required to use this endpoint.
Rate limit: Maximum 6000 requests in a window of 1m.
POST
/
public
/
get-dsa-code-execution-result-batch
curl --request POST \
--url https://backend.codedamn.com/api/public/get-dsa-code-execution-result-batch \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"taskUniqueIds": [
"<string>"
]
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"tasks": [
{
"taskUniqueId": "<string>",
"sourceCodeAsBase64UrlEncoded": "<string>",
"language": "C",
"runConfig": {
"customMatcherToUseForExpectedOutput": "ExactMatch",
"expectedOutputAsBase64UrlEncoded": "<string>",
"stdinStringAsBase64UrlEncoded": "<string>",
"callbackUrlOnExecutionCompletion": "<string>",
"shouldEnablePerProcessAndThreadCpuTimeLimit": false,
"shouldEnablePerProcessAndThreadMemoryLimit": false,
"shouldAllowInternetAccess": false,
"compilerFlagString": "",
"maxFileSizeInKilobytesFilesCreatedOrModified": 1024,
"stackSizeLimitInKilobytes": 65536,
"cpuTimeLimitInMilliseconds": 2000,
"wallTimeLimitInMilliseconds": 5000,
"memoryLimitInKilobyte": 131072,
"maxProcessesAndOrThreads": 60
},
"codingTaskStatus": "Pending",
"runResult": {
"compilerOutputAfterCompilationBase64UrlEncoded": "<string>",
"finishedAt": "2023-11-07T05:31:56Z",
"runStatus": "compilation-error",
"programRunData": {
"cpuTimeUsedInMilliseconds": 1,
"wallTimeUsedInMilliseconds": 1,
"memoryUsedInKilobyte": 1,
"exitSignal": 123,
"exitCode": 123,
"stdoutBase64UrlEncoded": "<string>",
"stderrBase64UrlEncoded": "<string>"
}
}
}
]
}
}
}
]
Authorizations
Body
application/json
API Request Body
The body is of type object
.
Response
200 - application/json
API Response Body
The response is of type object[]
.
curl --request POST \
--url https://backend.codedamn.com/api/public/get-dsa-code-execution-result-batch \
--header 'Content-Type: application/json' \
--header 'FERMION-API-KEY: <api-key>' \
--data '{
"data": [
{
"data": {
"taskUniqueIds": [
"<string>"
]
}
}
]
}'
[
{
"output": {
"status": "ok",
"data": {
"tasks": [
{
"taskUniqueId": "<string>",
"sourceCodeAsBase64UrlEncoded": "<string>",
"language": "C",
"runConfig": {
"customMatcherToUseForExpectedOutput": "ExactMatch",
"expectedOutputAsBase64UrlEncoded": "<string>",
"stdinStringAsBase64UrlEncoded": "<string>",
"callbackUrlOnExecutionCompletion": "<string>",
"shouldEnablePerProcessAndThreadCpuTimeLimit": false,
"shouldEnablePerProcessAndThreadMemoryLimit": false,
"shouldAllowInternetAccess": false,
"compilerFlagString": "",
"maxFileSizeInKilobytesFilesCreatedOrModified": 1024,
"stackSizeLimitInKilobytes": 65536,
"cpuTimeLimitInMilliseconds": 2000,
"wallTimeLimitInMilliseconds": 5000,
"memoryLimitInKilobyte": 131072,
"maxProcessesAndOrThreads": 60
},
"codingTaskStatus": "Pending",
"runResult": {
"compilerOutputAfterCompilationBase64UrlEncoded": "<string>",
"finishedAt": "2023-11-07T05:31:56Z",
"runStatus": "compilation-error",
"programRunData": {
"cpuTimeUsedInMilliseconds": 1,
"wallTimeUsedInMilliseconds": 1,
"memoryUsedInKilobyte": 1,
"exitSignal": 123,
"exitCode": 123,
"stdoutBase64UrlEncoded": "<string>",
"stderrBase64UrlEncoded": "<string>"
}
}
}
]
}
}
}
]
Assistant
Responses are generated using AI and may contain mistakes.